import type { App } from 'vue'
import Permission from './permission'

function install(app: App) {
  console.log('----global directive install----')
  const directiveModules = [Permission]

  directiveModules.forEach((module) => {
    app.directive(module.name, module.directive)
  })
}

export default {
  install,
}
